package com.jack.vipmis.vip.share.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 记录分享信息
 * 
 * @author JackLiang
 * @date 2014-6-21
 * @version 1.0
 */
@Entity
@Table(name = "vip_share_info")
public class ShareRecord extends BaseEntity<Long> {

	/**
	 * 分享人信息
	 */
	@Column
	private String	sharer;					// 分享人ID

	/**
	 * 分享内容
	 */
	@Column(name = "share_content")
	private String	shareContent;

	/**
	 * 分享时间
	 */
	@Column(name = "share_time")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date	shareTime	= new Date();

	/**
	 * 备注信息
	 */
	@Column
	private String	remark;

	/**
	 * 是否显示
	 */
	@Column(name = "is_show")
	private Boolean	show;

	public String getSharer() {
		return sharer;
	}

	public void setSharer(String sharer) {
		this.sharer = sharer;
	}

	public String getShareContent() {
		return shareContent;
	}

	public void setShareContent(String shareContent) {
		this.shareContent = shareContent;
	}

	public Date getShareTime() {
		return shareTime;
	}

	public void setShareTime(Date shareTime) {
		this.shareTime = shareTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Boolean getShow() {
		return show;
	}

	public void setShow(Boolean show) {
		this.show = show;
	}

}
